package com.voe.common;

public enum ProcessingTypes {

	kPlaybackPerChannel(0), 
	kPlaybackAllChannelsMixed(1), 
	kRecordingPerChannel(2), 
	kRecordingAllChannelsMixed(3), 
	kRecordingPreprocessing(4);

	public static ProcessingTypes fromValue(int value) {
		for (int i=0;i<ProcessingTypes.values().length;i++) {
			if(ProcessingTypes.values()[i].getValue() == value)
				return ProcessingTypes.values()[i];
		}
		return null;
	}
	
	/**
	 * Constructor.
	 */
	private ProcessingTypes(int value) {
		this.value = value;
	}

	/**
	 * Get the value.
	 * 
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	private final int value;
}
